//自定义空页面异常处理
package com.wzy.wzyblog;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

//指定返回的状态码          为资源找不到的状态
@ResponseStatus(HttpStatus.NOT_FOUND)
//自定义异常              继承运行异常
public class NotFoundException extends RuntimeException{
    public NotFoundException() {
        super();
    }

    public NotFoundException(String message) {
        super(message);
    }

    public NotFoundException(String message, Throwable cause) {
        super(message, cause);
    }
}
